package view;

import java.util.Set;

import javax.swing.JComboBox;

import model.view.CasillaView;


public class Utility {

	public static String[] crearOpcionesCasilla(Set<CasillaView> casillasView){
		String[] opciones=new String[casillasView.size()];
		int i=0;
		for (CasillaView view:casillasView){
			opciones[i]=view.toString();
			i++;
		}
		return opciones;
	}
	
	public static String getSelectedValue(JComboBox comboBox){
		return (String)comboBox.getSelectedItem();
	}
	
	
}
